package com.fccommunity.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.fccommunity.R;
import com.fccommunity.base.BaseActivity;
import com.fccommunity.widget.TitleBar;

/**
 * Created by yiwei on 16/5/12.
 */
public class ModifyNikeActivity extends BaseActivity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_modifynike);
    }

    @Override
    protected void initTitle() {
        titleBar.setTitle("修改昵称");
        titleBar.setLeftImageResource(R.mipmap.back);
        titleBar.setLeftClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        TextView view = (TextView) titleBar.addAction(new TitleBar.TextAction("确定") {
            @Override
            public void performAction(View view) {
                finish();
            }
        });
        view.setTextColor(getResources().getColor(R.color.white));
    }
}
